package com.opesoft.fw.edm;

import uk.ltd.getahead.dwr.WebContext;

public interface Logic
{
	/**
	 * 用于进行初始化的方法
	 * @param request
	 * @param response
	 * @throws Exception
	 */
	public void init(WebContext webContext,String data) throws Exception;
	

	/**
	 * 用于执行具体业务逻辑的方法
	 * @return
	 * @throws Exception
	 */
	public Object execute() throws Exception;
	
	public Object error(Exception e);
}
